﻿using System;
using System.Text;
using BSDS.Core.Data.Local;
using BSDS.Core.Model.Services.Jobs.Core;

namespace BSDS.Core.Model.Services.Jobs
{
    public class DownloadJob : Job
    {
        public static string TypeName = "Download";

        public override string JobTypeName { get { return TypeName; } }

        public string DataSourceName { get; set; }
        public string OutFile { get; set; }
        public DataFormat Format { get; set; }
        public bool Portal { get; set; }
        public string Link { get; set; }

        public string Description { get; set; }

        public override string ToString()
        {
            var baseInfo = base.ToString();

            var builder = new StringBuilder();
            builder.Append("Data Source Name: " + DataSourceName).Append(Environment.NewLine);
            return baseInfo + builder;
        }
    }
}